﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Login.aspx.cs" Inherits="BitPortal.Admin.Login" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
    <style type="text/css">
        .Login
        {
            font-size: 12px;
            line-height: 32px;
            padding: 5px;
        }
        .Login input
        {
            float:right;
            padding:3px;
        }
        .Login .failureNotification
        {
            color:Red;
            line-height:24px;
        }
    </style>
</head>
<body>
    <form id="form1" runat="server">
    <div>
        <ext:ResourceManager runat="server" ID="ResourceManager1" />
        
        <ext:Window ID="Window2" runat="server" Closable="false" Resizable="false" AutoHeight="true"
            Icon="Lock" Title="Đăng nhập BitPortal CMS" Draggable="false" Width="350" Modal="false"
            Padding="5" Layout="Form">
            <Content>
                <div class="Login">
                    <asp:Login ID="LoginUser" runat="server" EnableViewState="false" RenderOuterTable="false"
                         OnLoginError="LoginUser_LoginError">
                        <LayoutTemplate>
                            <span class="failureNotification">
                                <asp:Literal ID="FailureText" runat="server"></asp:Literal>
                            </span>
                            <asp:ValidationSummary ID="LoginUserValidationSummary" runat="server" CssClass="failureNotification"
                                ValidationGroup="LoginUserValidationGroup" />
                            <div class="accountInfo">
                                <p>
                                    <asp:Label ID="UserNameLabel" runat="server" AssociatedControlID="UserName">Tên đăng nhập:</asp:Label>
                                    <asp:TextBox ID="UserName" runat="server" CssClass="textEntry"> </asp:TextBox>
                                    <asp:RequiredFieldValidator ID="UserNameRequired" runat="server" ControlToValidate="UserName"
                                        CssClass="failureNotification" ErrorMessage="Chưa nhập tên đăng nhập." ToolTip="Chưa nhập tên đăng nhập."
                                        ValidationGroup="LoginUserValidationGroup">&nbsp;</asp:RequiredFieldValidator>
                                </p>
                                <p>
                                    <asp:Label ID="PasswordLabel" runat="server" AssociatedControlID="Password">Mật khẩu:</asp:Label>
                                    <asp:TextBox ID="Password" runat="server" CssClass="passwordEntry" TextMode="Password"></asp:TextBox>
                                    <asp:RequiredFieldValidator ID="PasswordRequired" runat="server" ControlToValidate="Password"
                                        CssClass="failureNotification" ErrorMessage="Chưa nhập mật khẩu." ToolTip="Chưa nhập tên đăng nhập"
                                        ValidationGroup="LoginUserValidationGroup">&nbsp; </asp:RequiredFieldValidator>
                                </p>
                                <p>
                                    <asp:CheckBox ID="RememberMe" runat="server" />
                                    <asp:Label ID="RememberMeLabel" runat="server" AssociatedControlID="RememberMe" CssClass="inline">Giữ trạng thái đăng nhập</asp:Label>
                                </p>
                                <p class="submitButton">
                                    <asp:Button ID="LoginButton" runat="server" CommandName="Login" Text="Log In" ValidationGroup="LoginUserValidationGroup" />
                                </p>
                            </div>
                        </LayoutTemplate>
                    </asp:Login>
                </div>
            </Content>
        </ext:Window>
    </div>
    </form>
</body>
</html>
